package com.hopes.bizz.close.statistic.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 类型数量VO
 * @time 2024/1/30 11:01
 */
@Data
public class TypeNumVO implements Serializable {

    private static final long serialVersionUID = -1204929394229738255L;

    /**
     * 类型-code
     */
    private String code;

    /**
     * 类型-name
     */
    private String name;

    /**
     * 数量
     */
    private Integer number;


    public TypeNumVO(String code, String name, Integer number) {
        this.code = code;
        this.name = name;
        this.number = Optional.ofNullable(number).orElse(0);
    }


}
